package com.jet.leaf.service;

import com.jet.core.utils.CodeGenUtil;
import com.jet.leaf.dao.MerchantCodeSeqDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author dcl
 * @since 2024/10/9 23:21
 */
@Service
public class MerchantCodeGenerate {

    @Resource
    private MerchantCodeSeqDao merchantCodeSeqDao;

    public long create() {
        long seqNo = merchantCodeSeqDao.next();
        return CodeGenUtil.convertNumberCode(seqNo);
    }
}
